/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketbooking;

import DBTransmit.TableGaRecord;
import MessageVariable.BookedTicket;
import MessageVariable.ClientInfo;
import MessageVariable.ClientSign;
import MessageVariable.RequestForServer;
import MessageVariable.ResponseFromServer;
import MessageVariable.ServerSign;
import MessageVariable.TicketRequest;
import java.io.Serializable;
import java.security.Key;
import java.util.List;

/**
 *
 * @author LEHOANGKHANH
 */
public class TransferMessage implements Serializable {
    public static final int QUERY_DAY           = 1;
    public static final int QUERY_GA            = 2;
    public static final int QUERY_DAY_GA        = 3;
    public static final int RESPONSE            = 4;
    public static final int DATVE               = 5;
    public static final int HUYVE               = 6;
    public static final int TDTHONGTIN          = 7;
    public static final int TROGIUP             = 8;
    public static final int CONNECT             = 9;
    public static final int ACK                 = 10;
    public static final int REGISTERINFO        = 11;
    public static final int CONFIRMREGISTERINFO = 12;
    public static final int KEYEXCHANGE         = 13;
    public static final int CONFIRMKEYEXCHANGE  = 14;
    public static final int DATA                = 15;
    public static final int BOOKTICKET          = 16;
    public static final int CONFIRMBOOKTICKET   = 17;
    public static final int ERROR               = 18;
    public static final int SUCCESS             = 19;
    public static final int QUERY_GALIST        = 20;
    
    int messageType;
    ServerSign server = null;
    ClientSign client = null;
    String message;
    List <ResponseFromServer> response = null;
    List <BookedTicket> bookedTicket = null;
    List <TableGaRecord> stationList = null;
    RequestForServer request = null;
    TicketRequest  ticketRequest = null;
    ClientInfo clientInfo = null;
    
    public void setStationList(List <TableGaRecord> lst){
        this.stationList = lst;
    }
    public List <TableGaRecord> getStationList(){
        return this.stationList;
    }
    public void setType(int type){
        this.messageType = type;
    }
    public void setMessage(String msg){
        this.message = msg;
    }
    public void setServerSign(ServerSign server){
        this.server = server;
    }
    public void setClientSign(ClientSign client){
        this.client = client;
    }
    public void setRequest(RequestForServer rq){
        this.request = rq;
    }
    public void setResponse(List<ResponseFromServer> rp){
        this.response = rp;
    }
    public void setBookedTicket(List<BookedTicket> bt){
        this.bookedTicket = bt;
    }
    public void setTicketRequest(TicketRequest tickRq){
        this.ticketRequest = tickRq;
    }
    public void setClientInfo(ClientInfo clientinfo){
        this.clientInfo = clientinfo;
    }
    public int getType(){
        return this.messageType;
    }
    public String getMessage(){
        return this.message;
    }
    public ServerSign getServerSign(){
        return this.server;
    }
    public ClientSign getClientSign(){
        return this.client;
    }
    public List<ResponseFromServer> getResponse(){
        return this.response;
    }
    public List<BookedTicket> getBookedTicket(){
        return this.bookedTicket;
    }
    public TicketRequest getTicketRequest(){
        return this.ticketRequest;
    }
    public RequestForServer getRequestForServer(){
        return this.request;
    }
    public ClientInfo getClientInfo(){
        return this.clientInfo;
    }
}
